package com.smy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    @RequestMapping(value = {"/", "/login"})
    public String showMain() {
        return "login";
    }

    @RequestMapping(value = "/{path}")
    public String showPage(@PathVariable String path) {
        return path;
    }
}

